package com.ruoyi.orderUser.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orderUser.mapper.TbOrderUserMapper;
import com.ruoyi.orderUser.domain.TbOrderUser;
import com.ruoyi.orderUser.service.ITbOrderUserService;

/**
 * 会员领取情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-22
 */
@Service
public class TbOrderUserServiceImpl implements ITbOrderUserService 
{
    @Autowired
    private TbOrderUserMapper tbOrderUserMapper;

    /**
     * 查询会员领取情况
     * 
     * @param id 会员领取情况主键
     * @return 会员领取情况
     */
    @Override
    public TbOrderUser selectTbOrderUserById(Long id)
    {
        return tbOrderUserMapper.selectTbOrderUserById(id);
    }

    /**
     * 查询会员领取情况列表
     * 
     * @param tbOrderUser 会员领取情况
     * @return 会员领取情况
     */
    @Override
    public List<TbOrderUser> selectTbOrderUserList(TbOrderUser tbOrderUser)
    {
        return tbOrderUserMapper.selectTbOrderUserList(tbOrderUser);
    }

    /**
     * 新增会员领取情况
     * 
     * @param tbOrderUser 会员领取情况
     * @return 结果
     */
    @Override
    public int insertTbOrderUser(TbOrderUser tbOrderUser)
    {
        tbOrderUser.setCreateTime(DateUtils.getNowDate());
        return tbOrderUserMapper.insertTbOrderUser(tbOrderUser);
    }

    /**
     * 修改会员领取情况
     * 
     * @param tbOrderUser 会员领取情况
     * @return 结果
     */
    @Override
    public int updateTbOrderUser(TbOrderUser tbOrderUser)
    {
        return tbOrderUserMapper.updateTbOrderUser(tbOrderUser);
    }

    /**
     * 批量删除会员领取情况
     * 
     * @param ids 需要删除的会员领取情况主键
     * @return 结果
     */
    @Override
    public int deleteTbOrderUserByIds(Long[] ids)
    {
        return tbOrderUserMapper.deleteTbOrderUserByIds(ids);
    }

    /**
     * 删除会员领取情况信息
     * 
     * @param id 会员领取情况主键
     * @return 结果
     */
    @Override
    public int deleteTbOrderUserById(Long id)
    {
        return tbOrderUserMapper.deleteTbOrderUserById(id);
    }
}
